home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_068 / mg1b / startup.doc < prev    next >
Text File  |  1992-05-06  |  2KB  |  66 lines

  1.  
  2.                THE STARTUP FILE
  3.                ----------------
  4.  
  5.    If the STARTUP option has been compiled into MG, you can use a file
  6. of startup commands that rebind the keys and otherwise set up the
  7. editor as you see fit.
  8.  
  9.    The name and location of the startup file will vary depending on
  10. which system you are running MicroGnuEmacs on. Check the documentation
  11. for your system.
  12.  
  13.    The basic idea is that you are issuing M-X commands; the first line
  14. in the example startup file below would be interpreted as "<ESC>x
  15. bsmap-mode<RET>". Spaces are necessary to separate the parts of the
  16. command, but the quotation marks are there mainly for effect. If you
  17. happen to use GNU Emacs on a larger system, the startup file routines
  18. can also read your ".emacs" file, as long as the functions you call in
  19. the ".emacs" file are available in MicroGNUEmacs.
  20.  
  21. The escape conventions for specifying keys in startup files are:
  22.  
  23.     \^    next character is a control character
  24.     \e    next character is an escape (meta) character
  25.     \fnn    function key (where nn is a 1- or 2-digit decimal number)
  26.     \n    newline
  27.     \t    tab
  28.     \r    carriage return
  29.     \\    backslash character
  30.  
  31.     A '\' followed by anything else means "quote this character
  32.     as-is".
  33.  
  34.     A '\' followed by anything else means "quote this character as-is".
  35.  
  36.  
  37.             REDEFINING FUNCTION KEYS
  38.             ------------------------
  39.  
  40. If mg on your system supports function keys, information on rebinding
  41. them can be found in the doc files for that system.
  42.  
  43.  
  44.             EXAMPLE STARTUP FILE
  45.             --------------------
  46.  
  47. Finally, here's a startup file that gives an example of rebinding
  48. keys, starting modes, giving arguments to functions, and making MG
  49. show you matching parentheses, brackets, and braces.
  50.  
  51. --------------------------------CUT HERE---------------------------------
  52. auto-fill-mode
  53. set-fill-column 72
  54. blink-matching-paren
  55. global-set-key "}" blink-matching-paren-hack
  56. global-set-key "]" blink-matching-paren-hack
  57. global-set-key "\^l" redraw-display
  58. global-set-key "\e\^h" backward-kill-word
  59. global-set-key "\^h" backward-delete-char
  60. global-set-key "\^x\^v" find-file
  61. global-set-key "\eg" goto-line
  62. global-set-key "\f1" insert-file
  63. global-set-key "\f2" insert-buffer
  64. ---------------------------------CUT HERE-------------------------------------
  65.  
  66.